package com.fate.feign.hystrix;


import com.fate.domain.Prod;
import com.fate.feign.IndexImgProdFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class IndexImgProdFeignHystrix implements IndexImgProdFeign {
    /**
     * 远程调用根据商品id查询商品对象
     */
    @Override
    public Prod getProdById(Long prodId) {
        log.error("远程调用根据商品id查询商品对象失败,商品id{}",prodId);
        return null;
    }
}
